package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-10-16
 * Time: 17:30
 */
public class Test1 {
    public  static void func(int n) {
        if(n == 1)
            return;
        func(n - 1);
    }
    public static void main(String[] args) {
        func(10);
        print(123);
    }
    public static void print(int num) {
        while (num != 0) {
            System.out.print( num % 10+" ");
            num /= 10;
        }
    }
}
